﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SelectingMaxLenghtString
{
    class SelectingMaxLenghtString
    {
        static void Main(string[] args)
        {
            string[] strings = { "asd", "pesho", "gen2323adi", "atanas" };

            var maxLenghtString =
                from st in strings
                where st.Length == strings.Max(str=>str.Length)
                select st;

            foreach (var item in maxLenghtString)
            {
                Console.WriteLine(item);
            }
            
        }
    }
}
